<div class="row">
	<div class="six columns">
		<h1>Register</h1>

		<?php
		$this->pageTitle = Yii::app()->name . ' - Register';

		CHtml::$afterRequiredLabel = '';
		$form = $this->beginWidget('CActiveForm', array(
			'errorMessageCssClass' => 'error',
			'htmlOptions' => array(
				'class' => 'nice'
			)
			));

		echo $form->labelEx($model, 'Name');
		echo $form->textField($model, 'name', array(
			'class' => 'input-text',
			'placeholder' => 'Name',
			'maxlength' => 64,
			'required' => ''
		));
		echo $form->error($model, 'name');

		echo $form->labelEx($model, 'email');
		echo $form->textField($model, 'email', array(
			'class' => 'input-text',
			'placeholder' => 'Email',
			'maxlength' => 254,
			'required' => ''
		));
		echo $form->error($model, 'name');

		echo $form->labelEx($model, 'password');
		echo $form->passwordField($model, 'password', array(
			'class' => 'input-text',
			'placeholder' => 'Password',
			'required' => ''
		));
		echo $form->error($model, 'password');

		echo CHtml::submitButton('Register', array(
			'class' => 'nice blue radius button'
		));

		$this->endWidget();
		?>
	</div>
	
	<div class="six columns">
		<iframe src="https://www.facebook.com/plugins/registration.php?
				client_id=155843244525431
				&redirect_uri=http%3A%2F%2Flocalhost%2Fosad%2Fuser%2Fregister%2F
				&fields=name,email,password"
				scrolling="auto"
				frameborder="no"
				style="border:none"
				allowTransparency="true"
				width="100%"
				height="330">
		</iframe>
	</div>
</div>
